import request from '@/utils/request'

// 查询手机号永久黑名单列表
export function listPhone_perpetual(query) {
  return request({
    url: '/platform/phone_perpetual/list',
    method: 'get',
    params: query
  })
}

// 查询手机号永久黑名单详细
export function getPhone_perpetual(permanentBlacklistPhoneId) {
  return request({
    url: '/platform/phone_perpetual/' + permanentBlacklistPhoneId,
    method: 'get'
  })
}

// 新增手机号永久黑名单
export function addPhone_perpetual(data) {
  return request({
    url: '/platform/phone_perpetual',
    method: 'post',
    data: data
  })
}

// 修改手机号永久黑名单
export function updatePhone_perpetual(data) {
  return request({
    url: '/platform/phone_perpetual',
    method: 'put',
    data: data
  })
}

// 删除手机号永久黑名单
export function delPhone_perpetual(permanentBlacklistPhoneId) {
  return request({
    url: '/platform/phone_perpetual/' + permanentBlacklistPhoneId,
    method: 'delete'
  })
}
